import http from '@/utils/http';
import type { TCheckInReq } from './type';
import type { Dayjs } from 'dayjs';

export const getDailyDataByDate = (date: string | Dayjs) =>
  http.get<number>('/api/v1/feishu/checkTodayRoutine', { date });

export const checkIn = (params: TCheckInReq) =>
  http.post<any>('/api/v1/feishu/dailyRoutine', params);

export const getSheetAllData = () => http.get('/api/v1/feishu/getSheetAllData');
